﻿<Window x:Class="MPE.Colors"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:local="clr-namespace:MPE"
        mc:Ignorable="d"
        Title="Цвета" Height="568.322" Width="275.222" MouseLeftButtonDown="Window_MouseLeftButtonDown">
    <Grid>
        <GroupBox Header="Тема" HorizontalAlignment="Left" Height="518" Margin="10,10,0,0" VerticalAlignment="Top" Width="251">
            <Grid>
                <RadioButton x:Name="DarkTheme" Content="Темная" Margin="10,5,0,0" Height="18" RenderTransformOrigin="0.5,0.5" Width="81" VerticalAlignment="Top" FontSize="14" HorizontalAlignment="Left" Checked="Theme_Checked"/>
                <RadioButton x:Name="WhiteTheme" Content="Светлая"  Margin="159,5,-1,0" Height="18" RenderTransformOrigin="0.5,0.5" Width="81" FontSize="14" VerticalAlignment="Top" HorizontalAlignment="Left" Checked="Theme_Checked"/>
                <Label Content="Фон редактора" Margin="0,23,0,0" Height="27" VerticalAlignment="Top" HorizontalAlignment="Left" Width="94"/>
                <Label Content="Цвет текста" Margin="0,50,0,0" Height="27" VerticalAlignment="Top" HorizontalAlignment="Left" Width="94"/>
                <Label Content="Нумерация" Margin="0,77,0,0" Height="27" VerticalAlignment="Top" HorizontalAlignment="Left" Width="94"/>
                <Label Content="Фон нумерации" Margin="0,109,0,0" Height="27" VerticalAlignment="Top" HorizontalAlignment="Left" Width="100"/>
                <Label Content="Выделение текста" Margin="0,136,0,0" Height="27" VerticalAlignment="Top" HorizontalAlignment="Left" Width="110"/>
                <TextBox x:Name="BackColorTB" KeyUp="TB_KeyUp"  Margin="160,28,-1,0" Height="22" VerticalAlignment="Top" HorizontalAlignment="Left" Width="80" LostFocus="TB_LostFocus" MaxLength="7" FontWeight="Bold" FontSize="14"/>
                <TextBox x:Name="ForeColorTB" ToolTip="Цвет для обычного текста" KeyUp="TB_KeyUp"  Margin="160,55,-1,0" Height="22" VerticalAlignment="Top" HorizontalAlignment="Left" Width="80" LostFocus="TB_LostFocus" MaxLength="7" FontWeight="Bold" FontSize="14"/>
                <TextBox x:Name="LineNumberColorTB" ToolTip="Цвет нумерации строк" KeyUp="TB_KeyUp"  Margin="160,82,-1,0" Height="22" VerticalAlignment="Top" HorizontalAlignment="Left" Width="80" LostFocus="TB_LostFocus" MaxLength="7" FontWeight="Bold" FontSize="14"/>
                <TextBox x:Name="IndentBackColorTB" ToolTip="Цвет фона для нумерации строк" KeyUp="TB_KeyUp"  Margin="160,109,-1,0" Height="22" VerticalAlignment="Top" HorizontalAlignment="Left" Width="80" LostFocus="TB_LostFocus" MaxLength="7" FontWeight="Bold" FontSize="14"/>
                <TextBox x:Name="SelectionColorTB" ToolTip="Цвет выделения текста" KeyUp="TB_KeyUp"  Margin="160,136,-1,0" Height="22" VerticalAlignment="Top" HorizontalAlignment="Left" Width="80" LostFocus="TB_LostFocus" MaxLength="7" FontWeight="Bold" FontSize="14"/>
                <Label Content="Скобки" HorizontalAlignment="Left" Margin="0,163,0,0" VerticalAlignment="Top" RenderTransformOrigin="0.445,0.605"/>
                <Label Content="Функции" HorizontalAlignment="Left" Margin="0,194,0,0" VerticalAlignment="Top"/>
                <Label Content="Переменные" HorizontalAlignment="Left" Margin="0,225,0,0" VerticalAlignment="Top"/>
                <Label Content="Ключевые слова" HorizontalAlignment="Left" Margin="0,285,0,0" VerticalAlignment="Top"/>
                <Label Content="Комментарии" HorizontalAlignment="Left" Margin="0,316,0,0" VerticalAlignment="Top"/>
                <TextBox x:Name="bracketsTB" ToolTip="[]" HorizontalAlignment="Left" Height="23" Margin="160,164,-1,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="80" Text="#D26922" FontWeight="Bold" FontSize="14" MaxLength="7" KeyUp="TB_KeyUp"/>
                <TextBox x:Name="commandTB" ToolTip="[VAR], [IF]..." HorizontalAlignment="Left" Height="23" Margin="160,196,-1,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="80" Text="#20B2AA" FontWeight="Bold" FontSize="14" MaxLength="7" KeyUp="TB_KeyUp"/>
                <TextBox x:Name="varableTB" ToolTip="$1, $2..." HorizontalAlignment="Left" Height="23" Margin="160,226,-1,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="80" Text="#FF2E2C" FontWeight="Bold" FontSize="14" MaxLength="7" KeyUp="TB_KeyUp"/>
                <TextBox x:Name="keywordsTB" ToolTip="HTTP, HTTPS..."  HorizontalAlignment="Left" Height="23" Margin="160,287,-1,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="80" Text="#EEC900" FontWeight="Bold" FontSize="14" MaxLength="7" KeyUp="TB_KeyUp"/>
                <TextBox x:Name="commentTB" ToolTip="{}{{}}" HorizontalAlignment="Left" Height="23" Margin="160,318,-1,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="80" Text="#00FF10" FontWeight="Bold" FontSize="14" MaxLength="7" KeyUp="TB_KeyUp"/>
                <Button x:Name="SetDefault" Content="По умолчанию" ToolTip="Цвета по умолчанию для выбранной темы" HorizontalAlignment="Left" Margin="127,466,0,0" VerticalAlignment="Top" Width="112" Click="SetDefault_Click" Foreground="#FFB41111" FontWeight="Bold" FontSize="14"/>
                <Button x:Name="Exec" Content="Применить" ToolTip="Применить выбранную тему" HorizontalAlignment="Left" Margin="4,466,0,0" VerticalAlignment="Top" Width="118" Foreground="#FF2E8913" FontWeight="Bold" FontSize="14" Click="Exec_Click"/>
                <Label Content="Переменные пользователя" HorizontalAlignment="Left" Margin="0,254,0,0" VerticalAlignment="Top"/>
                <TextBox x:Name="userVarableTB" ToolTip="Цвет переменных созданных пользователем" HorizontalAlignment="Left" Height="23" Margin="160,255,-1,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="80" Text="#FF2E2C" FontWeight="Bold" FontSize="14" MaxLength="7" KeyUp="TB_KeyUp"/>
                <Label Content="Фон карты кода" HorizontalAlignment="Left" Margin="0,342,0,0" VerticalAlignment="Top"/>
                <TextBox x:Name="codeMapBackgroundTB" HorizontalAlignment="Left" Height="23" Margin="160,345,-1,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="80" Text="#000" FontWeight="Bold" FontSize="14" MaxLength="7" KeyUp="TB_KeyUp"/>
                <Label Content="Измененная строка" HorizontalAlignment="Left" Margin="0,373,0,0" VerticalAlignment="Top"/>
                <TextBox x:Name="changedLineColorTB" HorizontalAlignment="Left" Height="23" Margin="160,376,-1,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="80" Text="#E89F0E" FontWeight="Bold" FontSize="14" MaxLength="7" KeyUp="TB_KeyUp"/>
                <Label Content="Цвет каретки" HorizontalAlignment="Left" Margin="0,404,0,0" VerticalAlignment="Top"/>
                <TextBox x:Name="caretColorTB" HorizontalAlignment="Left" Height="24" Margin="160,406,-1,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="80" Text="#FFF" FontWeight="Bold" FontSize="14" MaxLength="7" KeyUp="TB_KeyUp"/>
                <Label Content="Цвет текущей строки" HorizontalAlignment="Left" Margin="0,433,0,0" VerticalAlignment="Top"/>
                <TextBox x:Name="currLineColorTB" HorizontalAlignment="Left" Height="24" Margin="160,435,-1,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="80" Text="#d3d3d3" FontWeight="Bold" FontSize="14" MaxLength="7" KeyUp="TB_KeyUp"/>
            </Grid>
        </GroupBox>

    </Grid>
</Window>
